#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <pthread.h>
#include <sys/types.h>
#include <sys/errno.h>


int main(){

int buffer[8] = {38, 14, 5, 7, 3, 8, 5, 22};
int * p;

p = buffer;

printf("---------------------------------------------------------\n");
printf("Boucle sur un pointeur \n");
printf("---------------------------------------------------------\n");
int c = 0;
while (c < 8){
	printf("element%d: %d \n", c, *p);
	c++;
	p++;
}


}
